package com.集合.student;

import com.集合.student.Student;

import java.util.ArrayList;
//储存学生对象 并遍历出来
public class StudentArr {
    public static void main(String[] args) {
        Student student = new Student("黄四郎",19);
        Student student1 = new Student("周冬雨",18);

        ArrayList<Student> students = new ArrayList<>();
        students.add(student);
        students.add(student1);

        System.out.println(students.toString());


    }
}
